package com.wocao.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wocao.entity.ReqBody;
import com.wocao.entity.ZyComplaintSuggest;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 投诉建议  服务类
 * </p>
 *
 * @author cwj
 * @since 2023-11-29
 */
public interface ZyComplaintSuggestService extends IService<ZyComplaintSuggest> {

    //查询所有
    Page<ZyComplaintSuggest> selectComplaintAll(Page page, ReqBody reqBody);

    //导出
    void derive(HttpServletResponse response, String[] complaintIds) throws IOException;

    //更新投诉状态
    void editComplaintStatus(String comId);

    //小程序-根据业主id查询投诉建议
    List<ZyComplaintSuggest> selectAllByOwnerId(String userId,String comType);

    //小程序-添加
    void ComplaintAdd(ZyComplaintSuggest zyComplaintSuggest);
}
